<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace app\massage\server;

class RoleAuth
{
    public $_observer = [];
    public function __construct()
    {
    }
    public function addObserver($observer)
    {
        $this->_observer[] = $observer;
    }
    public function removeObserver($key)
    {
        unset($this->_observer[$key]);
    }
    public function notify($data)
    {
        if(!empty($this->_observer)) {
            foreach ($this->_observer as $observer) {
                $arr = $observer->checkAuthData($data);
                if(isset($arr["wallet_status"]) && $arr["wallet_status"] == 0) {
                    unset($arr["wallet_status"]);
                }
                $data = array_merge($data, $arr);
            }
        }
        return $data;
    }
}

?>